@echo off
SETX "JAVA_HOME" "C:\Program Files\Java\jdk1.8.0_191" /M
SETX "CLASSPATH" ".;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar" /M
SETX "Path" "%Path%;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin" /M
echo Successed